import { Module } from '@nestjs/common'
import { UserCreateModule } from './modules/create/user-create.module';
import { DatabaseModule } from '@/shared/database/database.module'
import { UserProviders } from './providers/user.provider'
import { UserExistQueryHandler } from './queris/user-exist.query.handler'
import { UserNotExistValidator } from './validators/user-not-exist.validator';

const queryHandlers = [UserExistQueryHandler]
const validatorS = [UserNotExistValidator]

@Module({
  imports: [DatabaseModule, UserCreateModule],
  exports: [...UserProviders,],
  providers: [...UserProviders, ...queryHandlers, ...validatorS],
})
export class UserModule { }
